Total Fees Collected Per Denom
Queries the total amount of fees collected by the VLP for the specified token denomination.
query Total_fees_collected_per_denom($denom: String!, $contract: String!) {
vlp(contract: $contract) {
total_fees_collected_per_denom(denom: $denom) {
lp_fees
euclid_fees
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Total_fees_collected_per_denom($denom: String!, $contract: String!) {\n vlp(contract: $contract) {\n total_fees_collected_per_denom(denom: $denom) {\n lp_fees\n euclid_fees\n }\n }\n}","variables":{"contract":"nibi1pys22jem6l222sxhexe7dmggtz8xkmhm49p7z3wjgrcdk3t46hgsle088m","denom":"stars"}}'
Arguments
- contract (String!): The contract address of the VLP to query.
- denom (String!): The token Id of the token to get the total fees for.
Return Fields
Field | Type | Description |
---|---|---|
lp_fees | LpFees | The total amount of fees collected by liquidity providers for this denom. |
euclid_fees | EuclidFees | The total amount of fees collected by Euclid protocol for this denom. |